#pragma warning(disable:4996)
#include <stdio.h>
#include<string.h>
#include<stdlib.h>
struct stuff {
    char* home;
    int num;
    char name[10];
};

int main(void) {
    struct stuff* TOM = (struct stuff*)malloc(sizeof(struct stuff));
    TOM->home = "LONDON";
    TOM->num = 201;
    strcpy(TOM->name, "TOM");
    char* p1 = TOM->home;
    char* p2 = TOM->name;
    printf("home=%s pointer of home%p  name=%s\n", TOM->home, TOM->home, TOM->name);
    free(TOM);
    printf("home=%s pointer of home%p name=%s\n", p1, p1, p2);
    return 0;
}
